﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CommonProductsList.ascx.cs" Inherits="UserControls_CommonProductsList" %>
<asp:ListView ID="lvPrdts" runat="server" GroupItemCount="3"
    onpagepropertieschanging="lvPrdts_PagePropertiesChanging" 
    onitemdatabound="lvPrdts_ItemDataBound">
    <GroupTemplate>
      <table style="width:619px">
        <tr>
        <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
        </tr>
      </table>
    </GroupTemplate>
    <LayoutTemplate>                        
        <asp:PlaceHolder ID="groupPlaceholder" runat="server" />
        <asp:DataPager ID="DataPager1" runat="server" PagedControlID="lvPrdts" 
            PageSize="10">
            <Fields>
                <asp:NumericPagerField />
            </Fields>
        </asp:DataPager>
    </LayoutTemplate>
    <ItemTemplate>
        <td>
            <a href='<%# "CommonProducts.aspx?prdtId="+Eval("Id") %>'><asp:Image ID="Image1" runat="server" style="width:100px; height:120px" /></a>

        </td>
        <td align="left" valign="top" style="font-size:9pt">
            <br />
            <a href='<%# "CommonProducts.aspx?prdtId="+Eval("Id") %>'><%# Eval("Name") %></a>         
            <br />
            <asp:Label ID="lblTag" runat="server" Text='<%# Eval("Tag") %>'></asp:Label>
            <asp:Label ID="lblID" runat="server" Visible="false" Text='<%# Eval("ID")  %>'></asp:Label>
            <br />
            <br />
            <br />
            市场价:<asp:Label ID="lblMarketPrice" runat="server" Text='<%# Eval("PriceMarket") %>'></asp:Label>
            <br />
            GoShopping价:<asp:Label ID="lblSaledPrice" runat="server" Text='<%# Eval("Price") %>'></asp:Label>
        </td>
    </ItemTemplate>
    <EmptyDataTemplate>
    非常抱歉,没有找到您需要的产品!
    </EmptyDataTemplate>
    <EmptyItemTemplate>
    </EmptyItemTemplate>
</asp:ListView>